home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / managers / mc-3.2 / mc-3 / mc-3.2.1 / vfs / ftpfs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-17  |  1.4 KB  |  69 lines

  1. /*  ftpfs.h */
  2.  
  3. #if !defined(__FTPFS_H)
  4. #define __FTPFS_H
  5.  
  6. struct ftpentry
  7. {
  8.     char *name;
  9.     int count;
  10.     char *linkname;
  11.     char *local_filename;
  12.     int local_is_temp:1;
  13.     int freshly_created:1;
  14.     struct stat local_stat;
  15.     char *remote_filename;
  16.     struct stat s;
  17.     struct stat *l_stat;
  18.     struct ftpfs_connection *bucket;
  19. };
  20.  
  21. struct ftpfs_dir
  22. {
  23.     int count;
  24.     struct timeval timestamp;
  25.     char *remote_path;
  26.     struct linklist *file_list;
  27. };
  28.  
  29. struct ftpfs_connection {
  30.     char *host;
  31.     char *user;
  32.     char *current_directory;
  33.     char *home;
  34.     char *updir;
  35.     int port;
  36.     int sock;
  37.     struct linklist *dcache;
  38.     int lock;
  39.     int failed_on_login;    /* used to pass the failure reason to upper levels */
  40.     int use_proxy;        /* use a proxy server */
  41.     int result_pending;
  42.     int use_source_route;
  43. };
  44.  
  45. #define qhost(b) (b)->host
  46. #define quser(b) (b)->user
  47. #define qcdir(b) (b)->current_directory
  48. #define qport(b) (b)->port
  49. #define qsock(b) (b)->sock
  50. #define qlock(b) (b)->lock
  51. #define qdcache(b) (b)->dcache
  52. #define qhome(b) (b)->home
  53. #define qupdir(b) (b)->updir
  54. #define qproxy(b) (b)->use_proxy
  55.  
  56. /* Increased since now we may use C-r to reread the contents */
  57. #define FTPFS_DIRECTORY_TIMEOUT 30 * 60
  58.  
  59. #define FTPFS_RESOLVE_SYMLINK 1
  60. #define FTPFS_OPEN            2
  61. #define FTPFS_FREE_RESOURCE   4
  62.  
  63. extern char *ftpfs_anonymous_passwd;
  64. extern char *ftpfs_proxy_host;
  65. extern ftpfs_directory_timeout;
  66.  
  67. void ftpfs_init_passwd ();
  68. #endif
  69.